package khleuven.mondzorg.db;

import junit.framework.TestCase;
import khleuven.mondzorg.db.readers.EntryBuilderFactory;
import khleuven.mondzorg.db.readers.EntryBuilderType;
import khleuven.mondzorg.domain.DentalCareApp;
import khleuven.mondzorg.domain.DomainException;

public class EntryBuilderHardCodedTest extends TestCase {

	public void setUp() throws Exception {
	}

	public void test() throws DBException, DomainException {
		DentalCareApp dca = DentalCareApp.getInstance();
		
		int before = dca.getNbOfIllustrations();
		EntryBuilderFactory.createEntryBuilderAndLoad(EntryBuilderType.HARDCODED);
		int after = dca.getNbOfIllustrations();
		
		assertTrue(before <= after);
		
		if(before == 0) {
			assertTrue(5 <= after);
		}		
	}

}
